<template>
    <van-tabs class="catetabs"  v-model="active">
      <van-tab v-for="item in categoryList" :title="item.name" :to="'/home/itemlist/'+item.id" >
        <!-- {{item.name}} -->
      </van-tab>
    </van-tabs>
</template>
<script>
export default {
    name:"CateTab",
    data() {
      return {
        active: 2,
      }
    },
    props: {
      categoryList:Array
    },
}
</script>
<style scoped>
  .catetabs {
    position: sticky;
    top: 44px;
    background-color: #fff;
    z-index: 3;
  }
</style>